﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="window_categorys.aspx.cs" Inherits="He.Web.manage.weixin.window_categorys" %>
<%@ Register Src="../_uc/head_list.ascx" TagPrefix="uc" TagName="head_list" %>
<%@ Register Src="../_uc/head.ascx" TagPrefix="uc" TagName="head" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <uc:head runat="server" ID="uchead" />
    <uc:head_list runat="server" ID="uchead_list" />
    <script src="../../plug/artDialog/artDialog.js?skin=default" type="text/javascript"></script>
    <script src="../../plug/artDialog/plugins/iframeTools.js" type="text/javascript"></script>
</head>
<body style="padding: 10px;">
    <form id="form1" runat="server">
    <table width="100%" border="0" cellspacing="0" cellpadding="0" class="msgtable">
        <asp:Repeater ID="rptList" runat="server" OnItemDataBound="rptList_ItemDataBound">
            <HeaderTemplate>
                <tr>
                    <th>
                        标题
                    </th>
                    <th>
                        所属栏目
                    </th>
                    <th width="80">
                        操作
                    </th>
                </tr>
            </HeaderTemplate>
            <ItemTemplate>
                <tr>
                    <td>
                        <asp:Literal ID="LitFirst" runat="server"></asp:Literal>
                        <asp:HiddenField ID="txtcategory_id" runat="server" Value='<%#Eval("id") %>' />
                        <asp:HiddenField ID="txtlayer" runat="server" Value='<%#Eval("layer") %>' />
                        <div id="<%#Eval("id") %>" style="display:inline"><%#Eval("title") %></div>
                    </td>
                    <td>
                        <%#GetChannelTitle(Eval("channel_id"))%>
                    </td>
                    <td>
                      <a href="window_articles.aspx?category_id=<%#Eval("id") %>&iskeyword=0">详细</a><a style="margin-left:14px;" href="javascript:void(0)" onclick="returnHomepage('<%=siteinfo.EnginePage %>?p=list&cid=<%#Eval("channel_id") %>&category_id=<%#Eval("id") %>')">选中</a>
                    </td>
                </tr>
            </ItemTemplate>
        </asp:Repeater>
    </table>
    </form>
    <script>
        var domid = art.dialog.data('domid');
        // 返回数据到主页面
        function returnHomepage(val) {
            var origin = artDialog.open.origin;
            var dom = origin.document.getElementById(domid);
            dom.value = val;
            setTimeout("art.dialog.close()", 100)
        }
</script>
</body>
</html>
